package api04a;

import java.io.*;

public class CopDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("aaa.jpg");
        FileOutputStream fos = new FileOutputStream("aaa_cp.jpg");
        int d;
        while ((d = fis.read())!=-1){
            fos.write(d);
        }
        System.out.println("复制完毕");
        fis.close();
        fos.close();
    }
}
